package com.haiyou.dc.netty.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.io.Serializable;

import java.util.Date;

/**
 * 用户表
 *
 * @author Administrator
 * @date 2020-02-29 22:49:56
 */
@ApiModel(value = "用户表")
@Data
@Accessors(chain = true)
@Table(name = "im_user")
public class ImUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value = "编号", name = "id")
    private String id;

    /**
     * 用户名
     */
    @Column(name = "username")
    @ApiModelProperty(value = "用户名", name = "username")
    private String username;

    /**
     * 密码
     */
    @Column(name = "password")
    @ApiModelProperty(value = "密码", name = "password")
    private String password;

    /**
     * 头像
     */
    @Column(name = "head_img")
    @ApiModelProperty(value = "头像", name = "headImg")
    private String headImg;

    /**
     * 客户端id
     */
    @Column(name = "client_id")
    @ApiModelProperty(value = "客户端id", name = "clientId")
    private String clientId;

    /**
     * 昵称
     */
    @Column(name = "nickname")
    @ApiModelProperty(value = "昵称", name = "nickname")
    private String nickname;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @ApiModelProperty(value = "创建时间", name = "createTime")
    private Date createTime;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    @ApiModelProperty(value = "更新时间", name = "updateTime")
    private Date updateTime;

}
